package com.huijie.app.u.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

/**
 * @ClassName UserEditVO
 * @Description 用户编辑表单 前端抽象实体
 * @Author Alex
 * @Date 2018/9/17 19:45
 * @Version 1.0
 */
@ApiModel(value = "userEditVO", description = "用户修改表单前端抽象实体")
public class UserEditVO {

    @ApiModelProperty(value = "用户ID", position = 1)
    private Integer id;

    //@NotBlank
    @Length(max = 50,message ="用户登陆名不能超过50个字符")
    @ApiModelProperty(value = "用户登陆名", position = 2, required = true)
    private String userLoginName;

    //@NotBlank
    @Length(max = 100,message ="用户名称不能超过100个字符")
    @ApiModelProperty(value = "用户名称", position = 3, required = true)
    private String userName;

    //@NotBlank
    @Length(max = 100,message ="用户密码不能超过100个字符")
    @ApiModelProperty(value = "用户密码", position = 4, required = true)
    private String userPassword;

    @Max(255)
    @Min(0)
    @ApiModelProperty(value = "用户状态", position = 5)
    private Short userStatus;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserLoginName() {
        return userLoginName;
    }

    public void setUserLoginName(String userLoginName) {
        this.userLoginName = userLoginName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public Short getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(Short userStatus) {
        this.userStatus = userStatus;
    }

    @Override
    public String toString() {
        return "UserEditVO{" +
                "id=" + id +
                ", userLoginName='" + userLoginName + '\'' +
                ", userName='" + userName + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", userStatus=" + userStatus +
                '}';
    }
}